﻿<%@ page language="java" contentType="text/html; charset=UTF-8"%>
<%@include file="/WEB-INF/pages/common/taglibs.jsp"%>
<style type="text/css">
<!--
.STYLE1 {font-size: 12px;
COLOR: #333333;
}
-->
</style>
<script type='text/javascript' src='${context_path}/dwr/engine.js'></script>

<script type='text/javascript' src='${context_path}/dwr/util.js'></script> 

<script type='text/javascript' src='${context_path}/dwr/interface/propertyService.js'></script>
<script type="text/javascript">
<!--
function slsect_fsort()
{
	 
	dwr.engine.setAsync(true);
    var fsortSel = $("category").value;
    if(fsortSel!=null&&fsortSel!=0)
    {
       //调用DWR框架暴露的方法，并把结果传递给showSecondSort方法。
       propertyService.findSub(3,''+'年级',''+fsortSel,showSecondSort);
       propertyService.findSub(3,''+'科目',''+fsortSel,showSecondSort1);
       
     
    }
}

function showSecondSort(data)
{
    DWRUtil.removeAllOptions("grade");//先把小类的选择列表值全部清空
    DWRUtil.addOptions("grade",["--年级--"]);//然后初始化数据
    DWRUtil.addOptions("grade",data);//此处是给select直接传递一个map对象，该对象是DWR暴露方法的返回值
}

function showSecondSort1(data)
{
    DWRUtil.removeAllOptions("subject");//先把小类的选择列表值全部清空
    DWRUtil.addOptions("subject",["--科目--"]);//然后初始化数据
    DWRUtil.addOptions("subject",data);//此处是给select直接传递一个map对象，该对象是DWR暴露方法的返回值
}
//-->
</script>

<table width="630" height="31" border="0" align="center" cellpadding="0" cellspacing="0">
<form name="form1" method="post" action="search.action" id="search_form">
<tr>
<td><span class="STYLE1">
类型： <select name="content.marked" style="width:80px; height:18px"class="STYLE17" id="category" onchange="slsect_fsort();">
      <option value="作业">==请选择==</option>
      <option value="作业">==作 业==</option>
      <option value="试卷">==试 卷==</option>
      <option value="教材">==教 材==</option>
    </select>
&nbsp;年级：<select name="content.grade" id="grade" style="width:70px;" class="STYLE17">
  <option value="">全部</option>
  
</select>
&nbsp;科目：<select name="content.subject" id="subject" style="width:70px;" class="STYLE17">
  <option value="">全部</option>
  
</select>
&nbsp;关键字：<input name="FK_title" type="text" id="FK_title" class="STYLE17" style="width:140px; height:20px" onclick="click_find('FK_title')" value="请输入关键字" >
</span></td>
<td ><a href="#" class="STYLE1" onclick="{click_find('FK_title');document.search_form.submit();}"><img src="${context_path}/images/btn_find.gif" width="66" height="24" border="0"></a></td>
</tr>
</form>
</table>
<script>
function click_find(id){
	var a = document.getElementById(""+id).value;
	if(a=="请输入关键字") document.getElementById(id).value="";
}
</script>